package vo;

public class User {
    private String name;
    public User(){
        System.out.println("1 执行构造方法");
    }
    public void setName(String name){
        System.out.println("2 执行set方法设置属性值");
        this.name=name;
    }
    public void initMethod(){
        System.out.println("3 执行初始化方法");
    }
    public void destroyMethod(){
        System.out.println("5 执行销毁方法");
    }
}
